package com.ruoyi.obtain.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.obtain.mapper.EduTeacherUserMapper;
import com.ruoyi.obtain.domain.EduTeacherUser;
import com.ruoyi.obtain.service.IEduTeacherUserService;

/**
 * 身份绑定Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-12
 */
@Service
public class EduTeacherUserServiceImpl implements IEduTeacherUserService 
{
    @Autowired
    private EduTeacherUserMapper eduTeacherUserMapper;

    /**
     * 查询身份绑定
     * 
     * @param id 身份绑定主键
     * @return 身份绑定
     */
    @Override
    public EduTeacherUser selectEduTeacherUserById(Long id)
    {
        return eduTeacherUserMapper.selectEduTeacherUserById(id);
    }

    /**
     * 查询身份绑定列表
     * 
     * @param eduTeacherUser 身份绑定
     * @return 身份绑定
     */
    @Override
    public List<EduTeacherUser> selectEduTeacherUserList(EduTeacherUser eduTeacherUser)
    {
        return eduTeacherUserMapper.selectEduTeacherUserList(eduTeacherUser);
    }

    /**
     * 新增身份绑定
     * 
     * @param eduTeacherUser 身份绑定
     * @return 结果
     */
    @Override
    public int insertEduTeacherUser(EduTeacherUser eduTeacherUser)
    {
        return eduTeacherUserMapper.insertEduTeacherUser(eduTeacherUser);
    }

    /**
     * 修改身份绑定
     * 
     * @param eduTeacherUser 身份绑定
     * @return 结果
     */
    @Override
    public int updateEduTeacherUser(EduTeacherUser eduTeacherUser)
    {
        return eduTeacherUserMapper.updateEduTeacherUser(eduTeacherUser);
    }

    /**
     * 批量删除身份绑定
     * 
     * @param ids 需要删除的身份绑定主键
     * @return 结果
     */
    @Override
    public int deleteEduTeacherUserByIds(Long[] ids)
    {
        return eduTeacherUserMapper.deleteEduTeacherUserByIds(ids);
    }

    /**
     * 删除身份绑定信息
     * 
     * @param id 身份绑定主键
     * @return 结果
     */
    @Override
    public int deleteEduTeacherUserById(Long id)
    {
        return eduTeacherUserMapper.deleteEduTeacherUserById(id);
    }
}
